import request from '@/utils/request'

const base = process.env.VUE_APP_BASE_API7 + '/pb-vendor'

export function add(val) {
  return request({
    url: base + '/add',
    method: 'post',
    data: val
  })
}

export function update(val) {
  return request({
    url: base + '/update',
    method: 'post',
    data: val
  })
}

export function deleteOne(val) {
  return request({
    url: base + '/delete',
    method: 'post',
    data: val
  })
}

export function batchDelete(val) {
  return request({
    url: base + '/batchDelete',
    method: 'post',
    data: val
  })
}

export function queryPage(val) {
  return request({
    url: base + '/queryPage',
    method: 'post',
    data: val
  })
}
